﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace UnoGame
{
    public interface ICard
    {
        String Color { get; }
        uint Number { get; }
    }

    public class Card : ICard
    {
        public Card(string color, uint number)
        {
            switch (color)
            {
                case "Blue":
                    Color = color;
                    break;
                case "Red":
                    Color = color;
                    break;
                case "Green":
                    Color = color;
                    break;
                case "Yellow":
                    Color = color;
                    break;
                default:
                    throw new ArgumentException(color + " is invalid!");
            }


            if (number <= 9)
            {
                Number = number;
            }
            else
            {
                throw new ArgumentException("Number cant be larger than 9");
            }
        }

        public string Color { get; private set; }
        public uint Number { get; private set; }
    }
}
